/**
 * Created with IntelliJ IDEA.
 * Description：
 * User：user
 * DATE:2021-10-26
 * Time:17:46
 */
public class TestDemo {
    public static void main(String[] args) {
        MyDoubleList myDoubleList = new MyDoubleList();
        myDoubleList.addFirst(1);
        myDoubleList.addFirst(2);
        myDoubleList.addLast(3);
        myDoubleList.addFirst(4);
        myDoubleList.addIndex(0,99);
        myDoubleList.addIndex(1,99);
        myDoubleList.display();
//        myDoubleList.addFirst(2);
//        myDoubleList.addFirst(3);
//        myDoubleList.addLast(3);
//        myDoubleList.addLast(3);
//        myDoubleList.display();
//        System.out.println(myDoubleList.size());
//        System.out.println(myDoubleList.contains(99));
//        //myDoubleList.addIndex(5,99);
//        myDoubleList.addIndex(5,88);
//        //myDoubleList.display();
//        myDoubleList.display();
    }
}
